import request from '@/utils/request'

const prefix = "/api/SecInvestigation"

/**
 *  新增治安检查
 */
export function inspectInsert(data) {
	return request({
		url: prefix + `/insert`,
		method: 'post',
		data
	})
}

/**
 *  修改治安检查
 */
export function inspectUpdate (data) {
	return request({
		url: prefix + `/update`,
		method: 'post',
		data
	})
}

/**
 *  治安检查列表
 */
export function inspectList (data) {
	return request({
		url: prefix + `/list`,
		method: 'post',
		data
	})
}

/**
 *  治安检查详情
 */
export function inspectDetails (id) {
	return request({
		url: prefix + `/details/${id}`,
		method: 'get',
	})
}

/**
 *  治安检查列表
 */
export function inspectDelete (id) {
	return request({
		url: prefix + `/delete/${id}`,
		method: 'get',
	})
}


/**
 *  楼宇查询
 */
export function areaList(data = {}) {
	return request({
		url: `/api/CmAreaInfo/list`,
		method: 'post',
		data
	})
}







